﻿using Cherry.Agile.Enterprise.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Cherry.Agile.Enterprise.Services.Interface
{
    /// <summary>
    /// 业务类型接口
    /// </summary>
    [ServiceContract(Namespace = Unity.Namespace)]
    public interface IApplicationService
    {
        /// <summary>
        /// 得到某一个业务类型信息
        /// </summary>
        /// <param name="appID">业务ID</param>
        /// <returns>返回业务类型信息</returns>
        [OperationContract]
        Application GetApplication(int appID);

        /// <summary>
        /// 得到所有的业务类型信息
        /// </summary>
        /// <returns>所有业务类型信息列表</returns>
        [OperationContract]
        List<Application> GetApplicationList();

        /// <summary>
        /// 获取各业务系统的项目路径
        /// </summary>
        /// <returns>项目根路径</returns>
        [OperationContract]
        List<string> GetExistAppCodes();
    }
}
